import request from '@/utils/request'


// 查询列表
export function listSiteGuard(query) {
  return request({
    url: '/sjgtw-emergency/siteGuard/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getSiteGuard(id) {
  return request({
    url: '/sjgtw-emergency/siteGuard/' + id,
    method: 'get'
  })
}

// 新增
export function addSiteGuard(data) {
  return request({
    url: '/sjgtw-emergency/siteGuard',
    method: 'post',
    data: data
  })
}

// 修改
export function updateSiteGuard(data) {
  return request({
    url: '/sjgtw-emergency/siteGuard',
    method: 'put',
    data: data
  })
}

// 删除
export function delSiteGuard(id) {
  return request({
    url: '/sjgtw-emergency/siteGuard/' + id,
    method: 'delete'
  })
}